import Vue from 'vue'
import Router from 'vue-router'
import msgBoard from '@/pages/msgBoard/msgBoard'
import login from '@/pages/login/login'
import index from '@/pages/index/index'
import daily from '@/pages/daily/daily'
import album from '@/pages/album/album'
import chatRoom from '@/pages/chatRoom/chatRoom'

import EventSource from '@/pages/EventSource/EventSource'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },{
      path: '/login',
      name: 'login',
      component: login
    },{
      path: '/msgBoard',
      name: 'msgBoard',
      component: msgBoard
    },{
      path: '/daily',
      name: 'daily',
      component: daily
    },{
      path: '/album',
      name: 'album',
      component: album
    },{
      path: '/chatRoom',
      name: 'chatRoom',
      component: chatRoom
    },{
      path: '/EventSource',
      name: 'EventSource',
      component: EventSource
    }
  ]
})
